#pragma once

#include "thriftServer.h"
#include "./qzmthrift/thrift_generate/Thrift.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/server/TNonblockingServer.h> //qA190415
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include <QObject>
#include <QDebug>
#include <QMutex>

using namespace ::apache::thrift;
using namespace ::apache::thrift::protocol;
using namespace ::apache::thrift::transport;
using namespace ::apache::thrift::server;
using namespace ::apache::thrift::stdcxx;

class ThriftHandler : virtual public ThriftIf,QObject
{
public:
    ThriftHandler(QObject *object);
    int32_t openRtBCST();
    int32_t closeRtBCST();

    static QMutex g_mutex_flag1;
    static bool g_flag1;

signals:
    void isOpenRtBCST(void);
    void isCloseRtBCST(void);

};


